Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
Hello,
I am using Yocto on a RISC-V board, Microchip PolarFire Icicle Kit:
https://www.microsemi.com/ existing-parts/parts/152514 ( https://www.microsemi.com/existing-parts/parts/152514 )
(Board's Yocto directory: https://github.com/ polarfire-soc/meta-polarfire- soc-yocto-bsp ( https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp ) )
I would like to use docker containers with this OS and architecture. Seeking advice with "meta-virtualization", is this feasible?
What I have done:
* I have added the "meta-virtualization" layer (pulled from git) and added them to "bblayers.conf".
* In "local.conf", I added the line:
* IMAGE_INSTALL += "docker"
* After running bitbake, I get an error message:
| NOTE: make -j 32 cross-local | cross-local | -linkshared not supported on linux/riscv64 | make: *** [Makefile:85: cross-local] Error 1 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.
ERROR: Task (/home/ubuntu/work/yocto/ yocto-dev/meta-virtualization/ recipes-containers/docker/ docker-ce_git.bb:do_compile) failed with exit code '1'
Thanks,
Jonathan
Quoted 26 lines · On Thu, Dec 29, 2022 at 6:10 PM <[email protected]> wrote:
Hello,
I am using Yocto on a RISC-V board, Microchip PolarFire Icicle Kit:
https://www.microsemi.com/existing-parts/parts/152514
(Board's Yocto directory:
https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp)I would like to use docker containers with this OS and architecture. Seeking advice with "meta-virtualization", is this feasible?
What I have done:
- I have added the "meta-virtualization" layer (pulled from git) and added them to "bblayers.conf".
- In "local.conf", I added the line:
-IMAGE_INSTALL+= "docker"
- After running bitbake, I get an error message:| NOTE: make -j 32 cross-local | [image: 🐳] cross-local | -linkshared not supported on linux/riscv64 | make: *** [Makefile:85: cross-local] Error 1 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.
Quoted 5 lines
ERROR: Task (
/home/ubuntu/work/yocto/yocto-dev/meta-virtualization/recipes-containers/docker/docker-ce_git.bb:do_compile) failed with exit code '1'
riscv isn't an architecture that is built or tested with meta-virt, so while it might be feasible, I don't even know what work would be required to get all the components building for the architecture.
Clearly the flags we are using in the recipe don't work for riscv (or perhaps they are being added by the docker Makefiles themselves .. I'm not on my typical setup so I can't check), so that's the first thing to investigate and then work through the issues.
Patches to fix the build for the architecture would be accepted, but there's no one that I know of who's currently working on support.
Bruce
Quoted 19 lines
Thanks,
Jonathan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#7782):
https://lists.yoctoproject.org/g/meta-virtualization/message/7782
Mute This Topic: https://lists.yoctoproject.org/mt/95945792/1050810
Mute #meta-virtualization:
https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/meta-virtualization
Mute #yocto:
https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi Jonathan,
<[email protected]> escreveu no dia quinta, 29/12/2022 à(s) 23:10:
Quoted 26 lines
Hello,
I am using Yocto on a RISC-V board, Microchip PolarFire Icicle Kit:
https://www.microsemi.com/existing-parts/parts/152514
(Board's Yocto directory:
https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp)I would like to use docker containers with this OS and architecture. Seeking advice with "meta-virtualization", is this feasible?
What I have done:
- I have added the "meta-virtualization" layer (pulled from git) and added them to "bblayers.conf".
- In "local.conf", I added the line:
-IMAGE_INSTALL+= "docker"
- After running bitbake, I get an error message:| NOTE: make -j 32 cross-local | [image: 🐳] cross-local | -linkshared not supported on linux/riscv64 | make: *** [Makefile:85: cross-local] Error 1 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.
Quoted 3 lines
ERROR: Task (
/home/ubuntu/work/yocto/yocto-dev/meta-virtualization/recipes-containers/docker/docker-ce_git.bb:do_compile) failed with exit code '1'
This build issue is already fixed on some meta-virtualization git branches. At last master, langdale and kirkstone have the patch, are you using any of them?
Can you please try this patch?
Jose
Quoted 20 lines
Thanks,
Jonathan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#7782):
https://lists.yoctoproject.org/g/meta-virtualization/message/7782
Mute This Topic: https://lists.yoctoproject.org/mt/95945792/5052612
Mute #meta-virtualization:
https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/meta-virtualization
Mute #yocto:
https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Best regards, José Quaresma
Hello
Hello Bruce and Jose,
Thank you for your valuable input.
I needed to update from Honister to Kirkstone.
Using Kirkstone, I was to successfully build with meta-virtualization layer and include the CORE_IMAGE_EXTRA_INSTALL="docker".
However, I am now having a different bug.
"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" I include some screenshots of the error.
Is this a familiar problem?
Thanks,
Jonathan
Quoted 2 lines · On 2022-12-31 02:50, [email protected] wrote:
I include some screenshots of the error.
To me, it seems like you need to add some additional kernel configurations for your build, enabling e.g. overlayfs support in your kernel.
BR,
/Joakim